package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderItem;
import com.nbsaas.boot.order.api.domain.simple.OrderItemSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 订单商品-列表对象转换器
*/

public class OrderItemSimpleConvert implements Converter<OrderItemSimple, OrderItem> {




@Override
public OrderItemSimple convert(OrderItem source) {
    OrderItemSimple result = new OrderItemSimple();

                result.setUnitPrice(source.getUnitPrice());
                result.setProductSkuId(source.getProductSkuId());
                result.setProductSkuSn(source.getProductSkuSn());
                result.setOrderNo(source.getOrderNo());
                result.setQuantity(source.getQuantity());
                result.setProductId(source.getProductId());
                result.setProductSn(source.getProductSn());
                result.setOrderId(source.getOrderId());
                result.setTotalPrice(source.getTotalPrice());
                result.setProductSkuName(source.getProductSkuName());
                result.setRefundTime(source.getRefundTime());
                result.setRefundReason(source.getRefundReason());
                result.setProductBrandId(source.getProductBrandId());
                result.setProductSkuSpec(source.getProductSkuSpec());
                result.setDiscountAmount(source.getDiscountAmount());
                result.setRefundStatus(source.getRefundStatus());
                result.setAddDate(source.getAddDate());
                result.setProductName(source.getProductName());
                result.setProductCategoryId(source.getProductCategoryId());
                result.setProductImage(source.getProductImage());
                result.setPayAmount(source.getPayAmount());
                result.setId(source.getId());
                result.setRefundAmount(source.getRefundAmount());
                result.setLastDate(source.getLastDate());


    return result;
}

}